<ion-view view-title="我的好友店铺" class="distributor_sxqd myfriendjxs">
	<ion-nav-bar ng-class="baseclass">
		<ion-nav-back-button></ion-nav-back-button>
	</ion-nav-bar>

	<ion-content class="bg">
		<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
			<div class="list">
				<div class="item supplierframe" ng-repeat-start="friend in friends.store">
					<div class="imgframe">
						<img src="./img/guilin/common/icon_shop@2x.png" />
					</div>
					<span class="status" ng-class="friend.status=='0'?'gray':'blue'">{{friend.status_str}}</span>
					<div class="shopframe">
						<div class="shopname" on-tap="onshow_first($event,friend.store_id)">
							{{friend.name}}<img src="./img/guilin/common/icon_right@2x.png"/>
						</div>
						<p>授信额度：{{friend.credit_line}}</p>
						<p>欠款金额：{{friend.used_amount}}</p>
					</div>
				</div>	
				<div class="item btnItem" ng-repeat-end="">					
					<div class="basebtn" style="border-color:{{button.color}};color:{{button.color}};" ng-repeat="button in friend.buttons" on-tap="switchEvent(button.id,friend.store_id,$index)">{{button.name}}</div>
				</div>
			</div>
		<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
	</ion-content>
</ion-view>